From dff89fffcd01805995d0c3b6befc26ed2b940b46 Mon Sep 17 00:00:00 2001 From: Calle Wilund Date: Tue, 9 Feb 2016 13:53:22 +0000 Subject: [PATCH] IDL: Add idl definitions for replay_position and truncation_record --- configure.py | 2 ++ idl/replay_position.idl.hh | 27 +++++++++++++++++++++++++++ idl/truncation_record.idl.hh | 30 ++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 idl/replay_position.idl.hh create mode 100644 idl/truncation_record.idl.hh diff --git a/configure.py b/configure.py index 4f462a65cd..567ca2ede2 100755 --- a/configure.py +++ b/configure.py @@ -473,6 +473,8 @@ idls = ['idl/gossip_digest.idl.hh', 'idl/paging_state.idl.hh', 'idl/frozen_schema.idl.hh', 'idl/partition_checksum.idl.hh', + 'idl/replay_position.idl.hh', + 'idl/truncation_record.idl.hh', ] scylla_tests_dependencies = scylla_core + api + idls + [ diff --git a/idl/replay_position.idl.hh b/idl/replay_position.idl.hh new file mode 100644 index 0000000000..f1d1dc8edf --- /dev/null +++ b/idl/replay_position.idl.hh @@ -0,0 +1,27 @@ +/* + * Copyright 2016 ScyllaDB + */ + +/* + * This file is part of Scylla. + * + * Scylla is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Scylla is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Scylla. If not, see . + */ + +namespace db { +struct replay_position { + uint64_t id; + uint32_t pos; +}; +} diff --git a/idl/truncation_record.idl.hh b/idl/truncation_record.idl.hh new file mode 100644 index 0000000000..a49546d25f --- /dev/null +++ b/idl/truncation_record.idl.hh @@ -0,0 +1,30 @@ +/* + * Copyright 2016 ScyllaDB + */ + +/* + * This file is part of Scylla. + * + * Scylla is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Scylla is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Scylla. If not, see . + */ + +namespace db { +namespace system_keyspace { +struct truncation_record { + uint32_t magic; + std::vector positions; + db_clock::time_point time_stamp; +}; +} +}