src/storage/transaction/ChainAddEdgesProcessorLocal.cpp
bool ChainAddEdgesProcessorLocal::checkVersion(const cpp2::AddEdgesRequest& req) {
  auto part = req.get_parts().begin()->first;
  auto sKeys = sEdgeKey(req);
  auto currVer = ConsistUtil::getMultiEdgeVers(env_->kvstore_, spaceId_, part, sKeys);
  for (auto i = 0U; i != currVer.size(); ++i) {
    if (currVer[i] < resumedEdgeVer_) {
      return false;
    }
  }
  return true;
}
// check if current edge is not newer than the one trying to resume.
// this function only take effect in resume mode
check if current edge is not newer than the one trying to resume.
this function only take effect in resume mode
check if current edge is not newer than the one trying to resume . this function only take effect in resume mode
bool ChainAddEdgesProcessorLocal::checkVersion(const cpp2::AddEdgesRequest& req) {
  auto part = req.get_parts().begin()->first;
  auto sKeys = sEdgeKey(req);
  auto currVer = ConsistUtil::getMultiEdgeVers(env_->kvstore_, spaceId_, part, sKeys);
  for (auto i = 0U; i != currVer.size(); ++i) {
    if (currVer[i] < resumedEdgeVer_) {
      return false;
    }
  }
  return true;
}
bool ChainAddEdgesProcessorLocal :: checkVersion ( const cpp2 :: AddEdgesRequest & req ) { auto part = req . get_parts ( ) . begin ( ) -> first ; auto sKeys = sEdgeKey ( req ) ; auto currVer = ConsistUtil :: getMultiEdgeVers ( env_ -> kvstore_ , spaceId_ , part , sKeys ) ; for ( auto i = 0U ; i != currVer . size ( ) ; ++ i ) { if ( currVer [ i ] < resumedEdgeVer_ ) { return false ; } } return true ; }
check if current edge is not newer than the one trying to resume.
check if current edge is not newer than the one trying to resume .