levy5307 commented on a change in pull request #651: URL: https://github.com/apache/incubator-pegasus/pull/651#discussion_r537191858
########## File path: src/server/rocksdb_wrapper.h ########## @@ -0,0 +1,58 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +#pragma once + +#include <dsn/dist/replication/replica_base.h> + +namespace rocksdb { +class DB; +class ReadOptions; +} // namespace rocksdb + +namespace dsn { +class perf_counter_wrapper; +} // namespace dsn + +namespace pegasus { +namespace server { +struct db_get_context; +class pegasus_server_impl; + +static constexpr int FAIL_DB_GET = -104; Review comment: It it internal error codes used for fail injection, and there are three other error codes defined in `pegasus_write_service_impl.h`: ``` static constexpr int FAIL_DB_WRITE_BATCH_PUT = -101; static constexpr int FAIL_DB_WRITE_BATCH_DELETE = -102; static constexpr int FAIL_DB_WRITE = -103; ``` I think `104` has no special meaning. And I don't want to change it, because it is not the main purpose for this pull reqeust. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
