question about ApplyManager, SubmitManager and FileJournal
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): b122136.df6f.1478d3cd445.Coremail.fastsync-9Onoh4P/[email protected]
These sorts of questions are good for [email protected], which I've added. :)
Quoted 5 lines · yuelongguang
hi,all
recently i dive into the source code, i am a little confused about them, maybe because of many threads,wait,seq.1. what does
apply_managerdo? it is related to filestore and file journal.
It's a utility class implemented in the "JournalingObjectStore" class (which FileStore inherits from and implements). I'm not super familiar with this system but it's basically just the functions that deal with committing writes to the journal and applying them to the backing filesystem.
Quoted 1 line
2. what does SubmitManager do?
This one is used by the FileStore when it's actively submitting ops; the real purpose is pretty much to take and drop a lock which serializes the operations and protects access to various data members.
Quoted 1 line
3. how they interact and work together?
Perhaps you can ask a more specific question? -Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com