From d9ba3805c708b56c9f4e2a7252af9ab2c4c728ee Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Mon, 26 Mar 2018 11:09:38 -0700 Subject: [PATCH] rocksdb: fix WritableFile::mSize type All of the uses of this member variable treat it as uint64_t. Change-Id: Iba9cf2eae1f2bd79617e2785ad498526f1115c10 Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/405331 Tested-by: SPDK Automated Test System Reviewed-by: Jim Harris Reviewed-by: Changpeng Liu --- lib/rocksdb/env_spdk.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rocksdb/env_spdk.cc b/lib/rocksdb/env_spdk.cc index 51672f1f76..ff96996e86 100644 --- a/lib/rocksdb/env_spdk.cc +++ b/lib/rocksdb/env_spdk.cc @@ -187,7 +187,7 @@ SpdkRandomAccessFile::InvalidateCache(size_t offset, size_t length) class SpdkWritableFile : public WritableFile { struct spdk_file *mFile; - uint32_t mSize; + uint64_t mSize; public: SpdkWritableFile(struct spdk_file *file) : mFile(file), mSize(0) {}