Skip to content

Commit bb9b51b

Browse files
committed
Change log messages and remove unnecessary comments
1 parent 2ab6624 commit bb9b51b

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/nativestore/MetaPropertyEdgeLink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ unsigned int MetaPropertyEdgeLink::insert(std::string name, char* value) {
7474
this->metaEdgePropertiesDB->write(reinterpret_cast<char*>(dataValue), MetaPropertyEdgeLink::MAX_VALUE_SIZE);
7575
this->metaEdgePropertiesDB->flush();
7676
pthread_mutex_unlock(&lockInsertMetaPropertyEdgeLink);
77-
property_edge_link_logger.debug("updating already existing property key = " + std::string(name));
77+
property_edge_link_logger.debug("Updating already existing property key = " + std::string(name));
7878
return this->blockAddress;
7979
} else if (this->nextPropAddress) { // Traverse to the edge/end of the link list
8080
std::unique_ptr<MetaPropertyEdgeLink> pel(new MetaPropertyEdgeLink(this->nextPropAddress));

src/nativestore/MetaPropertyLink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ unsigned int MetaPropertyLink::insert(std::string name, const char* value) {
7171
this->metaPropertiesDB->write(reinterpret_cast<char*>(dataValue), MetaPropertyLink::MAX_VALUE_SIZE);
7272
this->metaPropertiesDB->flush();
7373
pthread_mutex_unlock(&lockInsertMetaPropertyLink);
74-
meta_property_link_logger.debug("updating already existing property key = " + std::string(name));
74+
meta_property_link_logger.debug("Updating already existing property key = " + std::string(name));
7575
return this->blockAddress;
7676
} else if (this->nextPropAddress) { // Traverse to the edge/end of the link list
7777
return this->next()->insert(name, value);

src/nativestore/NodeBlock.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,10 @@ void NodeBlock::addProperty(std::string name, const char* value) {
9898
void NodeBlock::addMetaProperty(std::string name, const char* value) {
9999
if (this->metaPropRef == 0) {
100100
MetaPropertyLink* newLink = MetaPropertyLink::create(name, value);
101-
// pthread_mutex_lock(&lockAddNodeProperty);
101+
102102
if (newLink) {
103103
this->metaPropRef = newLink->blockAddress;
104-
// If it was an empty prop link before inserting, Then update the property reference of this node
105-
// block
106-
// node_block_logger.info("propRef = " + std::to_string(this->propRef));
104+
107105
NodeBlock::nodesDB->seekp(this->addr +sizeof(this->usage) +sizeof(this->nodeId) + sizeof(this->edgeRef) +
108106
sizeof(this->centralEdgeRef) + sizeof(this->edgeRefPID)+ sizeof(this->propRef));
109107
NodeBlock::nodesDB->write(reinterpret_cast<char*>(&(this->metaPropRef)), sizeof(this->metaPropRef));

0 commit comments

Comments
 (0)