From: Samuel Just Date: Mon, 17 Feb 2014 01:42:30 +0000 (-0800) Subject: buffer: allow caller to initialize bufferhash state X-Git-Tag: v0.78~163^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=258af5ebe6edd010b2c310510dcf18b361360f1e;p=ceph.git buffer: allow caller to initialize bufferhash state Signed-off-by: Samuel Just --- diff --git a/src/include/buffer.h b/src/include/buffer.h index 4c275cacae9e..5491105f9487 100644 --- a/src/include/buffer.h +++ b/src/include/buffer.h @@ -448,6 +448,7 @@ public: public: hash() : crc(0) { } + hash(uint32_t init) : crc(init) { } void update(buffer::list& bl) { crc = bl.crc32c(crc);