From dd6c444822f34239d3e80887b659112aa5b15307 Mon Sep 17 00:00:00 2001 From: sdong Date: Mon, 14 Jul 2014 12:06:22 -0700 Subject: [PATCH] Improve Put()'s comment to indicate that the key is overwritten if existing Summary: As title Test Plan: Not needed for comment only. Reviewers: yhchiang, ljin, MarkCallaghan Reviewed By: MarkCallaghan Subscribers: xjin, dhruba, leveldb Differential Revision: https://reviews.facebook.net/D19887 --- include/rocksdb/db.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/rocksdb/db.h b/include/rocksdb/db.h index b1cbbc25b3..7f61d6e15e 100644 --- a/include/rocksdb/db.h +++ b/include/rocksdb/db.h @@ -160,6 +160,7 @@ class DB { virtual Status DropColumnFamily(ColumnFamilyHandle* column_family); // Set the database entry for "key" to "value". + // If "key" already exists, it will be overwritten. // Returns OK on success, and a non-OK status on error. // Note: consider setting options.sync = true. virtual Status Put(const WriteOptions& options,