From a5fa8735e9a7d9eed78a106b6665d7442840778d Mon Sep 17 00:00:00 2001 From: Vijay Nadimpalli Date: Fri, 20 Sep 2019 10:05:52 -0700 Subject: [PATCH] Code comment for Version Edit (#5829) Summary: Added comment for Version Edit. Pull Request resolved: https://github.com/facebook/rocksdb/pull/5829 Test Plan: Run existing tests Differential Revision: D17486229 Pulled By: vjnadimpalli fbshipit-source-id: b4b31104fadd667356b64bd2dc409b3376ee46ca --- db/version_edit.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db/version_edit.h b/db/version_edit.h index a9c4c5a9d..06a8b0caf 100644 --- a/db/version_edit.h +++ b/db/version_edit.h @@ -191,6 +191,10 @@ struct LevelFilesBrief { } }; +// The state of a DB at any given time is referred to as a Version. +// Any modification to the Version is considered a Version Edit. A Version is +// constructed by joining a sequence of Version Edits. Version Edits are written +// to the MANIFEST file. class VersionEdit { public: VersionEdit() { Clear(); }