Is it possible comment the leveldb setup codes during mkfs call path?
i find the problem is because i am trying to use a bunch of memory as
the OSD, when the leveldb mmap() the file on OSD, it failed, as the
file actually located on memory.

Thanks,
Sheng

On Thu, Feb 7, 2013 at 2:53 PM, Gregory Farnum <[email protected]> wrote:
> On Thu, Feb 7, 2013 at 12:42 PM, sheng qiu <[email protected]> wrote:
>> Hi Dan,
>>
>> thanks for your reply.
>>
>> after some code tracking, i found it failed at this point :
>> in file leveldb/db/db_impl.cc  --> NewDB()
>>
>> log::Writer log(file);
>>     std::string record;
>>     new_db.EncodeTo(&record);
>>     s = log.AddRecord(record);
>>     if (s.ok()) {
>>       fprintf(test, "NewDB: 2\n");
>>       s = file->Close();
>>     }else
>>       fprintf(test, "NewDB: 2.5\n");
>>
>> the log.AddRecord return s which is not ok().
>>
>> can you provide some hint why it fails?  i am reading the AddRecord()
>> function now.
>
> LevelDB is a generic library which we don't develop. My understanding
> is that it's expected to work on any POSIX-compliant filesystem, but
> you can check out the docs
> (http://leveldb.googlecode.com/svn/trunk/doc/index.html) or source
> code for more info.
> -Greg



-- 
Sheng Qiu
Texas A & M University
Room 332B Wisenbaker
email: [email protected]
College Station, TX 77843-3259
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to