diff --git a/include/rocksdb/db.h b/include/rocksdb/db.h index 7e8926153..8b4d7ae56 100644 --- a/include/rocksdb/db.h +++ b/include/rocksdb/db.h @@ -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