]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/fuzz/proto/db_operation.proto
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / rocksdb / fuzz / proto / db_operation.proto
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under both the GPLv2 (found in the
3 // COPYING file in the root directory) and Apache 2.0 License
4 // (found in the LICENSE.Apache file in the root directory).
5
6 // Defines database operations.
7 // Each operation is a key-value pair and an operation type.
8
9 syntax = "proto2";
10
11 enum OpType {
12 PUT = 0;
13 MERGE = 1;
14 DELETE = 2;
15 DELETE_RANGE = 3;
16 }
17
18 message DBOperation {
19 required string key = 1;
20 // value is ignored for DELETE.
21 // [key, value] is the range for DELETE_RANGE.
22 optional string value = 2;
23 required OpType type = 3;
24 }
25
26 message DBOperations {
27 repeated DBOperation operations = 1;
28 }