1
0
Fork 0

removed headers->verify() because it was a non-op

This commit is contained in:
Jan Steemann 2013-03-08 13:36:48 +01:00
parent deb8946e1d
commit 8a6bac82ad
3 changed files with 0 additions and 17 deletions

View File

@ -435,9 +435,6 @@ static int CreateDocument (TRI_doc_operation_context_t* context,
// write document blob
// .............................................................................
// verify the header pointer
header = document->_headers->verify(document->_headers, header);
// generate crc
TRI_FillCrcKeyMarkerDatafile(journal, &marker->base, markerSize, keyBody, keyBodySize, body, bodySize);
@ -1384,8 +1381,6 @@ static bool OpenIterator (TRI_df_marker_t const* marker, void* data, TRI_datafil
return false;
}
header = collection->_headers->verify(collection->_headers, header);
// fill the header
CreateHeader(primary, datafile, marker, markerSize, header);

View File

@ -144,16 +144,6 @@ static TRI_doc_mptr_t* RequestSimpleHeaders (TRI_headers_t* h) {
return c.h;
}
////////////////////////////////////////////////////////////////////////////////
/// @brief verifies if header is still valid, possible returning a new one
///
/// this function currently does nothing
////////////////////////////////////////////////////////////////////////////////
static TRI_doc_mptr_t* VerifySimpleHeaders (TRI_headers_t* h, TRI_doc_mptr_t* header) {
return header;
}
////////////////////////////////////////////////////////////////////////////////
/// @brief releases a header, putting it back onto the freelist
////////////////////////////////////////////////////////////////////////////////
@ -193,7 +183,6 @@ TRI_headers_t* TRI_CreateSimpleHeaders (size_t headerSize) {
}
headers->base.request = RequestSimpleHeaders;
headers->base.verify = VerifySimpleHeaders;
headers->base.release = ReleaseSimpleHeaders;
headers->_freelist = NULL;

View File

@ -56,7 +56,6 @@ struct TRI_doc_mptr_s;
typedef struct TRI_headers_s {
struct TRI_doc_mptr_s* (*request) (struct TRI_headers_s*);
struct TRI_doc_mptr_s* (*verify) (struct TRI_headers_s*, struct TRI_doc_mptr_s*);
void (*release) (struct TRI_headers_s*, struct TRI_doc_mptr_s*);
}
TRI_headers_t;