mirror of https://gitee.com/bigwinds/arangodb
renamed struct attribute
This commit is contained in:
parent
a4b8e86cda
commit
577860c978
|
@ -150,7 +150,7 @@ BOOST_AUTO_TEST_CASE (tst_wal_document_marker) {
|
|||
|
||||
BOOST_CHECK_EQUAL(24, offsetOf(&triagens::wal::document_marker_t::_databaseId));
|
||||
BOOST_CHECK_EQUAL(32, offsetOf(&triagens::wal::document_marker_t::_collectionId));
|
||||
BOOST_CHECK_EQUAL(40, offsetOf(&triagens::wal::document_marker_t::_rid));
|
||||
BOOST_CHECK_EQUAL(40, offsetOf(&triagens::wal::document_marker_t::_revisionId));
|
||||
BOOST_CHECK_EQUAL(48, offsetOf(&triagens::wal::document_marker_t::_transactionId));
|
||||
BOOST_CHECK_EQUAL(56, offsetOf(&triagens::wal::document_marker_t::_shape));
|
||||
BOOST_CHECK_EQUAL(64, offsetOf(&triagens::wal::document_marker_t::_offsetKey));
|
||||
|
@ -186,7 +186,7 @@ BOOST_AUTO_TEST_CASE (tst_wal_remove_marker) {
|
|||
|
||||
BOOST_CHECK_EQUAL(24, offsetOf(&triagens::wal::remove_marker_t::_databaseId));
|
||||
BOOST_CHECK_EQUAL(32, offsetOf(&triagens::wal::remove_marker_t::_collectionId));
|
||||
BOOST_CHECK_EQUAL(40, offsetOf(&triagens::wal::remove_marker_t::_rid));
|
||||
BOOST_CHECK_EQUAL(40, offsetOf(&triagens::wal::remove_marker_t::_revisionId));
|
||||
BOOST_CHECK_EQUAL(48, offsetOf(&triagens::wal::remove_marker_t::_transactionId));
|
||||
}
|
||||
|
||||
|
|
|
@ -657,14 +657,14 @@ DocumentMarker::DocumentMarker (TRI_voc_tick_t databaseId,
|
|||
: Marker(TRI_WAL_MARKER_DOCUMENT,
|
||||
sizeof(document_marker_t) + alignedSize(key.size() + 1) + legend.getSize() + shapedJson->_data.length) {
|
||||
document_marker_t* m = reinterpret_cast<document_marker_t*>(begin());
|
||||
m->_databaseId = databaseId;
|
||||
m->_collectionId = collectionId;
|
||||
m->_rid = revisionId;
|
||||
m->_transactionId= transactionId;
|
||||
m->_shape = shapedJson->_sid;
|
||||
m->_offsetKey = sizeof(document_marker_t); // start position of key
|
||||
m->_offsetLegend = m->_offsetKey + alignedSize(key.size() + 1);
|
||||
m->_offsetJson = m->_offsetLegend + alignedSize(legend.getSize());
|
||||
m->_databaseId = databaseId;
|
||||
m->_collectionId = collectionId;
|
||||
m->_revisionId = revisionId;
|
||||
m->_transactionId = transactionId;
|
||||
m->_shape = shapedJson->_sid;
|
||||
m->_offsetKey = sizeof(document_marker_t); // start position of key
|
||||
m->_offsetLegend = m->_offsetKey + alignedSize(key.size() + 1);
|
||||
m->_offsetJson = m->_offsetLegend + alignedSize(legend.getSize());
|
||||
|
||||
storeSizedString(m->_offsetKey, key);
|
||||
|
||||
|
@ -791,7 +791,7 @@ EdgeMarker::EdgeMarker (TRI_voc_tick_t databaseId,
|
|||
|
||||
m->_databaseId = databaseId;
|
||||
m->_collectionId = collectionId;
|
||||
m->_rid = revisionId;
|
||||
m->_revisionId = revisionId;
|
||||
m->_transactionId = transactionId;
|
||||
m->_shape = shapedJson->_sid;
|
||||
m->_offsetKey = sizeof(edge_marker_t); // start position of key
|
||||
|
@ -942,9 +942,9 @@ RemoveMarker::RemoveMarker (TRI_voc_tick_t databaseId,
|
|||
std::string const& key)
|
||||
: Marker(TRI_WAL_MARKER_REMOVE, sizeof(remove_marker_t) + alignedSize(key.size() + 1)) {
|
||||
remove_marker_t* m = reinterpret_cast<remove_marker_t*>(begin());
|
||||
m->_databaseId = databaseId;
|
||||
m->_collectionId = collectionId;
|
||||
m->_rid = revisionId;
|
||||
m->_databaseId = databaseId;
|
||||
m->_collectionId = collectionId;
|
||||
m->_revisionId = revisionId;
|
||||
m->_transactionId = transactionId;
|
||||
|
||||
storeSizedString(sizeof(remove_marker_t), key);
|
||||
|
|
|
@ -140,7 +140,7 @@ namespace triagens {
|
|||
TRI_voc_tick_t _databaseId;
|
||||
TRI_voc_cid_t _collectionId;
|
||||
|
||||
TRI_voc_rid_t _rid; // this is the tick for a create and update
|
||||
TRI_voc_rid_t _revisionId; // this is the tick for a create and update
|
||||
TRI_voc_tid_t _transactionId;
|
||||
|
||||
TRI_shape_sid_t _shape;
|
||||
|
@ -182,7 +182,7 @@ namespace triagens {
|
|||
TRI_voc_tick_t _databaseId;
|
||||
TRI_voc_cid_t _collectionId;
|
||||
|
||||
TRI_voc_rid_t _rid; // this is the tick for the deletion
|
||||
TRI_voc_rid_t _revisionId; // this is the tick for the deletion
|
||||
TRI_voc_tid_t _transactionId;
|
||||
|
||||
// char* key
|
||||
|
@ -519,12 +519,12 @@ namespace triagens {
|
|||
|
||||
public:
|
||||
|
||||
inline TRI_voc_rid_t rid () const {
|
||||
inline TRI_voc_rid_t revisionId () const {
|
||||
document_marker_t const* m = reinterpret_cast<document_marker_t const*>(begin());
|
||||
return m->_rid;
|
||||
return m->_revisionId;
|
||||
}
|
||||
|
||||
inline TRI_voc_rid_t tid () const {
|
||||
inline TRI_voc_tid_t transactionId () const {
|
||||
document_marker_t const* m = reinterpret_cast<document_marker_t const*>(begin());
|
||||
return m->_transactionId;
|
||||
}
|
||||
|
@ -586,12 +586,12 @@ namespace triagens {
|
|||
|
||||
~EdgeMarker ();
|
||||
|
||||
inline TRI_voc_rid_t rid () const {
|
||||
inline TRI_voc_rid_t revisionId () const {
|
||||
edge_marker_t const* m = reinterpret_cast<edge_marker_t const*>(begin());
|
||||
return m->_rid;
|
||||
return m->_revisionId;
|
||||
}
|
||||
|
||||
inline TRI_voc_rid_t tid () const {
|
||||
inline TRI_voc_rid_t transactionId () const {
|
||||
edge_marker_t const* m = reinterpret_cast<edge_marker_t const*>(begin());
|
||||
return m->_transactionId;
|
||||
}
|
||||
|
@ -669,14 +669,14 @@ namespace triagens {
|
|||
return begin() + sizeof(remove_marker_t);
|
||||
}
|
||||
|
||||
inline TRI_voc_rid_t tid () const {
|
||||
inline TRI_voc_tid_t transactionId () const {
|
||||
remove_marker_t const* m = reinterpret_cast<remove_marker_t const*>(begin());
|
||||
return m->_transactionId;
|
||||
}
|
||||
|
||||
inline TRI_voc_rid_t rid () const {
|
||||
inline TRI_voc_rid_t revisionId () const {
|
||||
remove_marker_t const* m = reinterpret_cast<remove_marker_t const*>(begin());
|
||||
return m->_rid;
|
||||
return m->_revisionId;
|
||||
}
|
||||
|
||||
void dump () const;
|
||||
|
|
Loading…
Reference in New Issue