mirror of https://gitee.com/bigwinds/arangodb
added remove marker struct
This commit is contained in:
parent
57753f84dd
commit
029b7333ba
|
@ -174,6 +174,23 @@ BOOST_AUTO_TEST_CASE (tst_wal_edge_marker) {
|
|||
BOOST_CHECK_EQUAL(90, offsetof(struct TRI_wal_edge_marker_s, _offsetFromKey));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief test sizeof TRI_wal_remove_marker_t
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
BOOST_AUTO_TEST_CASE (tst_wal_remove_marker) {
|
||||
size_t s = sizeof(TRI_wal_remove_marker_t);
|
||||
|
||||
BOOST_CHECK_EQUAL(24 + 32, s); // base + own size
|
||||
BOOST_CHECK_EQUAL(true, s % 8 == 0);
|
||||
|
||||
BOOST_CHECK_EQUAL( 0, offsetof(struct TRI_wal_remove_marker_s, base));
|
||||
BOOST_CHECK_EQUAL(24, offsetof(struct TRI_wal_remove_marker_s, _databaseId));
|
||||
BOOST_CHECK_EQUAL(32, offsetof(struct TRI_wal_remove_marker_s, _collectionId));
|
||||
BOOST_CHECK_EQUAL(40, offsetof(struct TRI_wal_remove_marker_s, _rid));
|
||||
BOOST_CHECK_EQUAL(48, offsetof(struct TRI_wal_remove_marker_s, _tid));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief test sizeof TRI_doc_document_key_marker_t
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -383,6 +383,21 @@ typedef struct TRI_wal_edge_marker_s {
|
|||
}
|
||||
TRI_wal_edge_marker_t;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief wal remove marker
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
typedef struct TRI_wal_remove_marker_s {
|
||||
TRI_df_marker_t base;
|
||||
|
||||
TRI_voc_tick_t _databaseId;
|
||||
TRI_voc_cid_t _collectionId;
|
||||
|
||||
TRI_voc_rid_t _rid; // this is the tick for the deletion
|
||||
TRI_voc_tid_t _tid;
|
||||
}
|
||||
TRI_wal_remove_marker_t;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief document datafile marker with key
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue