Skip to content

Commit

Permalink
IGNITE-2817: IGFS: Optimized "updateProperties" and several other cac…
Browse files Browse the repository at this point in the history
…he operations. Reafactored IgfsMetaManager a bit to simplify work with cache.
  • Loading branch information
vozerov-gridgain committed Mar 16, 2016
1 parent 7b7233e commit dda1f0e
Show file tree
Hide file tree
Showing 3 changed files with 336 additions and 332 deletions.
Expand Up @@ -636,9 +636,7 @@ else if (val)
if (fileId == null)
return null;

IgniteUuid parentId = fileIds.size() > 1 ? fileIds.get(fileIds.size() - 2) : null;

IgfsFileInfo info = meta.updateProperties(parentId, fileId, path.name(), props);
IgfsFileInfo info = meta.updateProperties(fileId, props);

if (info != null) {
if (evts.isRecordable(EVT_IGFS_META_UPDATED))
Expand Down

0 comments on commit dda1f0e

Please sign in to comment.