Hi Jaln,

>>>>>>>> getLedgerForEntry(){
>>>>>>>>     journal.logAddEntry(bb, new NopWriteCallback(), null); }

Writes the 'masterKey' to the journal log file  'masterKey' is the auth info, 
for example 'password' of the ledger.


>>>>>>> addEntryInternal(LedgerDescriptor handle, ByteBuffer entry, 
>>>>>>> WriteCallback cb, Object ctx){ journal.logAddEntry(entry, cb, ctx); }

Writes the actual data entry to the journal log file. After the successful 
writes, bookie server will send the response back to the BookieClient.


Regards,
Rakesh

-----Original Message-----
From: Jaln [mailto:[email protected]] 
Sent: 02 July 2014 06:02
To: bookkeeper-dev
Subject: bookie writes

Hi,
Can you tell me which function writes the log file on bookie server side?
I found in Bookie.java, we have two functions to do the logaddentry when run 
the benchmark writes,

getLedgerForEntry(){
journal.logAddEntry(bb, new NopWriteCallback(), null); }

addEntryInternal(LedgerDescriptor handle, ByteBuffer entry, WriteCallback cb, 
Object ctx){ journal.logAddEntry(entry, cb, ctx); }

Can you plz tell me what's the difference? Which one actually writes the log 
into persistent disk?
Thanks much.


Best,
Jaln

Reply via email to