diff --git a/include/rocksdb/db.h b/include/rocksdb/db.h index 5b4094fa5..98025955f 100644 --- a/include/rocksdb/db.h +++ b/include/rocksdb/db.h @@ -235,14 +235,15 @@ class DB { // Allow compactions to delete obselete files. virtual Status EnableFileDeletions() = 0; + // GetLiveFiles followed by GetSortedWalFiles can generate a lossless backup + // THIS METHOD IS DEPRECATED. Use the GetTableMetaData to get more // detailed information on the live files. // Retrieve the list of all files in the database. The files are - // relative to the dbname and are not absolute paths. This list - // can be used to generate a backup. The valid size of the manifest - // file is returned in manifest_file_size. The manifest file is - // an ever growing file, but only the portion specified - // by manifest_file_size is valid for this snapshot. + // relative to the dbname and are not absolute paths. The valid size of the + // manifest file is returned in manifest_file_size. The manifest file is an + // ever growing file, but only the portion specified by manifest_file_size is + // valid for this snapshot. virtual Status GetLiveFiles(std::vector&, uint64_t* manifest_file_size) = 0; diff --git a/include/rocksdb/write_batch.h b/include/rocksdb/write_batch.h index 8b771712f..460402a60 100644 --- a/include/rocksdb/write_batch.h +++ b/include/rocksdb/write_batch.h @@ -43,12 +43,13 @@ class WriteBatch { // If the database contains a mapping for "key", erase it. Else do nothing. void Delete(const Slice& key); - // Append a blob of arbitrary to the records in this batch. The blob will be - // stored in the transaction log but not in any other file. In particular, it - // will not be persisted to the SST files. When iterating over this + // Append a blob of arbitrary size to the records in this batch. The blob will + // be stored in the transaction log but not in any other file. In particular, + // it will not be persisted to the SST files. When iterating over this // WriteBatch, WriteBatch::Handler::LogData will be called with the contents // of the blob as it is encountered. Blobs, puts, deletes, and merges will be - // encountered in the same order in thich they were inserted. + // encountered in the same order in thich they were inserted. The blob will + // NOT consume sequence number(s) and will NOT increase the count of the batch // // Example application: add timestamps to the transaction log for use in // replication.