From 1bbe0532dc6af87f056bd23155784c93e9bd048a Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Sat, 13 Dec 2014 17:43:02 +0100 Subject: [PATCH] Introduce DataNodeStore and refactor DataNode --- src/blockstore/utils/Key.cpp | 2 +- src/blockstore/utils/Key.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blockstore/utils/Key.cpp b/src/blockstore/utils/Key.cpp index ef3959a5..5cd5b205 100644 --- a/src/blockstore/utils/Key.cpp +++ b/src/blockstore/utils/Key.cpp @@ -69,7 +69,7 @@ void Key::ToBinary(void *target) const { std::memcpy(target, _key, KEYLENGTH_BINARY); } -Key Key::FromBinary(void *source) { +Key Key::FromBinary(const void *source) { Key result; std::memcpy(result._key, source, KEYLENGTH_BINARY); return result; diff --git a/src/blockstore/utils/Key.h b/src/blockstore/utils/Key.h index 7b091e41..5a6def0c 100644 --- a/src/blockstore/utils/Key.h +++ b/src/blockstore/utils/Key.h @@ -20,7 +20,7 @@ public: static Key FromString(const std::string &key); std::string ToString() const; - static Key FromBinary(void *source); + static Key FromBinary(const void *source); void ToBinary(void *target) const; const unsigned char *data() const;