Ignore:
Timestamp:
22/02/2010 22:10:04 (2 years ago)
Author:
chris
Message:

Remove all references to bdb databases, use QDBM instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupd/BackupDaemon.cpp

    r2597 r2631  
    17851785void BackupDaemon::SetupIDMapsForSync() 
    17861786{ 
    1787         // Need to do different things depending on whether it's an 
    1788         // in memory implementation, or whether it's all stored on disc. 
    1789          
    1790 #ifdef BACKIPCLIENTINODETOIDMAP_IN_MEMORY_IMPLEMENTATION 
    1791  
    1792         // Make sure we have some blank, empty ID maps 
    1793         DeleteIDMapVector(mNewIDMaps); 
    1794         FillIDMapVector(mNewIDMaps, true /* new maps */); 
    1795  
    1796         // Then make sure that the current maps have objects, 
    1797         // even if they are empty (for the very first run) 
    1798         if(mCurrentIDMaps.empty()) 
    1799         { 
    1800                 FillIDMapVector(mCurrentIDMaps, false /* current maps */); 
    1801         } 
    1802  
    1803 #else 
    1804  
    18051787        // Make sure we have some blank, empty ID maps 
    18061788        DeleteIDMapVector(mNewIDMaps); 
     
    18081790        DeleteIDMapVector(mCurrentIDMaps); 
    18091791        FillIDMapVector(mCurrentIDMaps, false /* new maps */); 
    1810  
    1811 #endif 
    18121792} 
    18131793 
     
    19361916void BackupDaemon::CommitIDMapsAfterSync() 
    19371917{ 
    1938         // Need to do different things depending on whether it's an in memory implementation, 
    1939         // or whether it's all stored on disc. 
    1940          
    1941 #ifdef BACKIPCLIENTINODETOIDMAP_IN_MEMORY_IMPLEMENTATION 
    1942         // Remove the current ID maps 
    1943         DeleteIDMapVector(mCurrentIDMaps); 
    1944  
    1945         // Copy the (pointers to) "new" maps over to be the new "current" maps 
    1946         mCurrentIDMaps = mNewIDMaps; 
    1947          
    1948         // Clear the new ID maps vector (not delete them!) 
    1949         mNewIDMaps.clear(); 
    1950  
    1951 #else 
    1952  
    19531918        // Get rid of the maps in memory (leaving them on disc of course) 
    19541919        DeleteIDMapVector(mCurrentIDMaps); 
     
    19741939                } 
    19751940        } 
    1976  
    1977 #endif 
    19781941} 
    19791942 
     
    19971960                 
    19981961                // Close and delete 
    1999                 toDel->Close(); 
    2000                 delete toDel; 
     1962win32 rename            delete toDel; 
    20011963        } 
    20021964        ASSERT(rVector.size() == 0); 
Note: See TracChangeset for help on using the changeset viewer.