Commit 89f7051b authored by John Esmet's avatar John Esmet Committed by Yoni Fogel
Browse files

[t:4706] comment and TODO the area of interest


git-svn-id: file:///svn/toku/tokudb@41659 c7de825b-a66e-492c-adef-691d508d4ae1
parent be356420
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -163,9 +163,13 @@ toku_db_release_ref(DB *db){
int 
toku_db_close(DB * db, u_int32_t flags, bool oplsn_valid, LSN oplsn) {
    int r = 0;
    // the magic number one comes from the fact that only one loader
    // or hot indexer may reference a DB at a time. when that changes,
    // this will break.
    if (db->i->refs != 1) {
        r = EBUSY;
    } else {
        // TODO: assert(db->i->refs == 0) because we're screwed otherwise
        db->i->refs = 0;
        if (db_opened(db) && db->i->dname) {
            // internal (non-user) dictionary has no dname