1
0
Fork 0

Fixed a logic bug to identify if a collection is a shard or a real local collection on DBServer

This commit is contained in:
Michael Hackstein 2016-08-31 13:19:16 +02:00
parent 4175c6eb65
commit d7bdf8e066
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ std::string CollectionNameResolver::localNameLookup(TRI_voc_cid_t cid) const {
auto it = _vocbase->_collectionsById.find(cid); auto it = _vocbase->_collectionsById.find(cid);
if (it != _vocbase->_collectionsById.end()) { if (it != _vocbase->_collectionsById.end()) {
if ((*it).second->planId() != (*it).second->cid()) { if ((*it).second->planId() == (*it).second->cid()) {
// DBserver local case // DBserver local case
name = (*it).second->name(); name = (*it).second->name();
} else { } else {