fix warning of unused direct io helper functions
Summary: add build guard Closes https://github.com/facebook/rocksdb/pull/1771 Differential Revision: D4410779 Pulled By: siying fbshipit-source-id: 3796c30
This commit is contained in:
parent
dc2584eea0
commit
d4e07a8459
@ -50,6 +50,7 @@ int Fadvise(int fd, off_t offset, size_t len, int advice) {
|
|||||||
/*
|
/*
|
||||||
* DirectIOHelper
|
* DirectIOHelper
|
||||||
*/
|
*/
|
||||||
|
#ifndef NDEBUG
|
||||||
namespace {
|
namespace {
|
||||||
const size_t kSectorSize = 512;
|
const size_t kSectorSize = 512;
|
||||||
#ifdef OS_LINUX
|
#ifdef OS_LINUX
|
||||||
@ -66,6 +67,7 @@ static bool IsPageAligned(const void* ptr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PosixSequentialFile
|
* PosixSequentialFile
|
||||||
|
Loading…
Reference in New Issue
Block a user