Compare commits

...

2 Commits

Author SHA1 Message Date
Siying Dong
36039fe744
Update db.h 2018-02-26 17:17:54 -08:00
Siying Dong
97c469c3c3
Update comments in DB::Close() 2018-02-26 13:43:58 -08:00

View File

@ -174,7 +174,8 @@ class DB {
// Close the DB by releasing resources, closing files etc. This should be
// called before calling the desctructor so that the caller can get back a
// status in case there are any errors. This will not fsync the WAL files.
// If syncing is required, the caller must first call SyncWAL.
// If syncing is required, the caller must first call SyncWAL(), or Write()
// using an empty write batch with WriteOptions.sync=true.
// Regardless of the return status, the DB must be freed. If the return
// status is NotSupported(), then the DB implementation does cleanup in the
// destructor