Ejemplo n.º 1
0
 /// <exception cref="Org.Apache.Hadoop.Hdfs.Protocol.QuotaExceededException"/>
 internal virtual void UpdateQuotasInSourceTree(BlockStoragePolicySuite bsps)
 {
     // update the quota usage in src tree
     if (isSrcInSnapshot)
     {
         // get the counts after rename
         QuotaCounts newSrcCounts = srcChild.ComputeQuotaUsage(bsps, new QuotaCounts.Builder
                                                                   ().Build(), false);
         newSrcCounts.Subtract(oldSrcCounts);
         srcParent.AddSpaceConsumed(newSrcCounts, false);
     }
 }