mirror of https://gitee.com/bigwinds/arangodb
Fixed now false checks on planId == 0 for SingleServer case. This is not true any more
This commit is contained in:
parent
09b611100c
commit
277953489c
|
@ -1361,11 +1361,7 @@ int RestReplicationHandler::createCollection(VPackSlice const& slice,
|
|||
planId = static_cast<TRI_voc_cid_t>(StringUtils::uint64(tmp));
|
||||
}
|
||||
|
||||
if (planId > 0) {
|
||||
TRI_ASSERT(col->planId() == planId);
|
||||
} else {
|
||||
TRI_ASSERT(col->planId() == 0);
|
||||
}
|
||||
TRI_ASSERT(col->planId() == planId);
|
||||
|
||||
|
||||
if (dst != nullptr) {
|
||||
|
|
|
@ -264,7 +264,7 @@ std::string CollectionNameResolver::localNameLookup(TRI_voc_cid_t cid) const {
|
|||
auto it = _vocbase->_collectionsById.find(cid);
|
||||
|
||||
if (it != _vocbase->_collectionsById.end()) {
|
||||
if ((*it).second->planId() == 0) {
|
||||
if ((*it).second->planId() != (*it).second->cid()) {
|
||||
// DBserver local case
|
||||
name = (*it).second->name();
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue