提交 6afafa36 编写于 作者: Y Yueh-Hsuan Chiang

Apply InfoLogLevel to the logs in utilities/merge_operators/uint64add.cc

Summary:
Apply InfoLogLevel to the logs and add missing copy-right information
to  utilities/merge_operators/uint64add.cc.

Test Plan: make

Reviewers: ljin, sdong, igor

Reviewed By: igor

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D27897
上级 e7ad69b9
// Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
#include <memory>
#include "rocksdb/env.h"
#include "rocksdb/merge_operator.h"
......@@ -45,7 +50,8 @@ class UInt64AddOperator : public AssociativeMergeOperator {
result = DecodeFixed64(value.data());
} else if (logger != nullptr) {
// If value is corrupted, treat it as 0
Log(logger, "uint64 value corruption, size: %zu > %zu",
Log(InfoLogLevel::ERROR_LEVEL, logger,
"uint64 value corruption, size: %zu > %zu",
value.size(), sizeof(uint64_t));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册