|
|
@ -174,7 +174,8 @@ class DB { |
|
|
|
// Close the DB by releasing resources, closing files etc. This should be
|
|
|
|
// 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
|
|
|
|
// 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.
|
|
|
|
// 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
|
|
|
|
// Regardless of the return status, the DB must be freed. If the return
|
|
|
|
// status is NotSupported(), then the DB implementation does cleanup in the
|
|
|
|
// status is NotSupported(), then the DB implementation does cleanup in the
|
|
|
|
// destructor
|
|
|
|
// destructor
|
|
|
|