mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 00:19:25 -05:00
added missing test on mUseCache in dataservice
This commit is contained in:
parent
17c6a2c54f
commit
f63575aa21
@ -1514,6 +1514,8 @@ int RsDataService::updateGroupMetaData(const GrpLocMetaData& meta)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if( mDb->sqlUpdate(GRP_TABLE_NAME, KEY_GRP_ID+ "='" + grpId.toStdString() + "'", meta.val))
|
if( mDb->sqlUpdate(GRP_TABLE_NAME, KEY_GRP_ID+ "='" + grpId.toStdString() + "'", meta.val))
|
||||||
|
{
|
||||||
|
if(mUseCache)
|
||||||
{
|
{
|
||||||
RetroCursor* c = mDb->sqlQuery(GRP_TABLE_NAME, mGrpMetaColumns, "grpId='" + grpId.toStdString() + "'", "");
|
RetroCursor* c = mDb->sqlQuery(GRP_TABLE_NAME, mGrpMetaColumns, "grpId='" + grpId.toStdString() + "'", "");
|
||||||
|
|
||||||
@ -1526,6 +1528,7 @@ int RsDataService::updateGroupMetaData(const GrpLocMetaData& meta)
|
|||||||
|
|
||||||
if(meta)
|
if(meta)
|
||||||
mGrpMetaDataCache.updateMeta(grpId,meta);
|
mGrpMetaDataCache.updateMeta(grpId,meta);
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user