add c api rocksdb_sstfilewriter_file_size
Summary: Closes https://github.com/facebook/rocksdb/pull/3922 Differential Revision: D8208528 Pulled By: ajkr fbshipit-source-id: d384fe53cf526f2aadc7b79a423ce36dbd3ff224
This commit is contained in:
parent
2a0dfaa044
commit
89b37081a1
5
db/c.cc
5
db/c.cc
@ -3264,6 +3264,11 @@ void rocksdb_sstfilewriter_finish(rocksdb_sstfilewriter_t* writer,
|
|||||||
SaveError(errptr, writer->rep->Finish(nullptr));
|
SaveError(errptr, writer->rep->Finish(nullptr));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void rocksdb_sstfilewriter_file_size(rocksdb_sstfilewriter_t* writer,
|
||||||
|
uint64_t* file_size) {
|
||||||
|
*file_size = writer->rep->FileSize();
|
||||||
|
}
|
||||||
|
|
||||||
void rocksdb_sstfilewriter_destroy(rocksdb_sstfilewriter_t* writer) {
|
void rocksdb_sstfilewriter_destroy(rocksdb_sstfilewriter_t* writer) {
|
||||||
delete writer->rep;
|
delete writer->rep;
|
||||||
delete writer;
|
delete writer;
|
||||||
|
@ -1310,6 +1310,8 @@ extern ROCKSDB_LIBRARY_API void rocksdb_sstfilewriter_delete(
|
|||||||
char** errptr);
|
char** errptr);
|
||||||
extern ROCKSDB_LIBRARY_API void rocksdb_sstfilewriter_finish(
|
extern ROCKSDB_LIBRARY_API void rocksdb_sstfilewriter_finish(
|
||||||
rocksdb_sstfilewriter_t* writer, char** errptr);
|
rocksdb_sstfilewriter_t* writer, char** errptr);
|
||||||
|
extern ROCKSDB_LIBRARY_API void rocksdb_sstfilewriter_file_size(
|
||||||
|
rocksdb_sstfilewriter_t* writer, uint64_t* file_size);
|
||||||
extern ROCKSDB_LIBRARY_API void rocksdb_sstfilewriter_destroy(
|
extern ROCKSDB_LIBRARY_API void rocksdb_sstfilewriter_destroy(
|
||||||
rocksdb_sstfilewriter_t* writer);
|
rocksdb_sstfilewriter_t* writer);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user