mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-27 11:43:49 +00:00
f20383f095
Summary: Debug and ported changes from the Open Source Github repo to our repo. Wrote a script to easy build the java Library. future compiling java lib should just be running this script. Test Plan: it compiles. Reviewers: dhruba, leveldb Reviewed By: dhruba Differential Revision: https://reviews.facebook.net/D7323
31 lines
1 KiB
Diff
31 lines
1 KiB
Diff
From 3f0a7d241d96e8dc40ebf8001e4c41aa4ff86472 Mon Sep 17 00:00:00 2001
|
|
From: Abhishek Kona <abhishekk@fb.com>
|
|
Date: Tue, 11 Dec 2012 22:38:14 -0800
|
|
Subject: [PATCH] patch to make it compilable with java
|
|
|
|
---
|
|
include/leveldb/db.h | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/include/leveldb/db.h b/include/leveldb/db.h
|
|
index 2cfa537..e84685b 100644
|
|
--- a/include/leveldb/db.h
|
|
+++ b/include/leveldb/db.h
|
|
@@ -182,9 +182,12 @@ class DB {
|
|
virtual Status GetLiveFiles(std::vector<std::string>&,
|
|
uint64_t* manifest_file_size) = 0;
|
|
|
|
- // The sequence number of the most recent transaction.
|
|
+ // The sequence number of the most recent transaction.
|
|
virtual SequenceNumber GetLatestSequenceNumber() = 0;
|
|
|
|
+ virtual void SuspendCompactions() {};
|
|
+ virtual void ResumeCompactions() {};
|
|
+
|
|
// Return's an iterator for all writes since the sequence number
|
|
// Status::ok if iterator is valid.
|
|
// The iterator internally holds references to the available log files.
|
|
--
|
|
1.7.11.1
|
|
|