Fix incompatible compilation in Linux server
This commit is contained in:
parent
161ab42a8a
commit
b8ea5e36b3
@ -65,8 +65,8 @@ Status Footer::DecodeFrom(Slice* input) {
|
|||||||
if (magic != table_magic_number()) {
|
if (magic != table_magic_number()) {
|
||||||
char buffer[80];
|
char buffer[80];
|
||||||
snprintf(buffer, sizeof(buffer) - 1,
|
snprintf(buffer, sizeof(buffer) - 1,
|
||||||
"not an sstable (bad magic number --- %#" PRIx64 ")",
|
"not an sstable (bad magic number --- %lx)",
|
||||||
magic);
|
(long)magic);
|
||||||
return Status::InvalidArgument(buffer);
|
return Status::InvalidArgument(buffer);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -135,8 +135,8 @@ Status SstFileReader::SetTableOptionsByMagicNumber(uint64_t table_magic_number,
|
|||||||
} else {
|
} else {
|
||||||
char error_msg_buffer[80];
|
char error_msg_buffer[80];
|
||||||
snprintf(error_msg_buffer, sizeof(error_msg_buffer) - 1,
|
snprintf(error_msg_buffer, sizeof(error_msg_buffer) - 1,
|
||||||
"Unsupported table magic number --- %#" PRIx64,
|
"Unsupported table magic number --- %lx",
|
||||||
table_magic_number);
|
(long)table_magic_number);
|
||||||
return Status::InvalidArgument(error_msg_buffer);
|
return Status::InvalidArgument(error_msg_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user