sstables: add FIXME comment

Signed-off-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com>
This commit is contained in:
Raphael S. Carvalho
2015-05-21 15:09:46 -03:00
committed by Tomasz Grabiec
parent 617484c8f1
commit 28e14a08d8

View File

@@ -519,6 +519,9 @@ future<> parse(random_access_reader& in, summary& s) {
future<> write(file_writer& out, summary_entry& entry)
{
// FIXME: summary entry is supposedly written in memory order, but that
// would prevent portability of summary file between machines of different
// endianness. We can treat it as little endian to preserve portability.
return write(out, entry.key).then([&out, &entry] {
auto p = reinterpret_cast<const char*>(&entry.position);
return out.write(p, sizeof(uint64_t));