Examples of markDirty()


Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.OCacheEntry.markDirty()

        if (nullBucket.getValue() != null)
          sizeDiff--;

        nullBucket.setValue(value);
        sizeDiff++;
        cacheEntry.markDirty();

        logPageChanges(nullBucket, cacheEntry.getFileId(), cacheEntry.getPageIndex(), isNew);
      } finally {
        cacheEntry.releaseExclusiveLock();
        diskCache.release(cacheEntry);
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.OCacheEntry.markDirty()

            changeSize(sizeDiff);
            return;
          }

          if (updateResult == 1) {
            cacheEntry.markDirty();
            logPageChanges(bucket, cacheEntry.getFileId(), cacheEntry.getPageIndex(), false);
            changeSize(sizeDiff);
            return;
          }
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.OCacheEntry.markDirty()

          bucket.deleteEntry(index);
          sizeDiff--;
        }

        if (bucket.addEntry(hashCode, key, value)) {
          cacheEntry.markDirty();
          logPageChanges(bucket, cacheEntry.getFileId(), cacheEntry.getPageIndex(), false);

          sizeDiff++;

          changeSize(sizeDiff);
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.OCacheEntry.markDirty()

          logPageChanges(newBucket, newBucketCacheEntry.getFileId(), newBucketCacheEntry.getPageIndex(), tombstoneIndex < 0);

          return new BucketSplitResult(updatedBucketPointer, newBucketPointer, newBucketDepth);
        } finally {
          newBucketCacheEntry.releaseExclusiveLock();
          newBucketCacheEntry.markDirty();
          diskCache.release(newBucketCacheEntry);
        }
      } finally {
        updatedBucketCacheEntry.releaseExclusiveLock();
        updatedBucketCacheEntry.markDirty();
View Full Code Here

Examples of micdoodle8.mods.galacticraft.core.dimension.SpaceStationWorldData.markDirty()

                        }

                        if (str != null)
                        {
                            data.getAllowedPlayers().remove(str);
                            data.markDirty();
                        }
                        else
                        {
                            throw new CommandException(GCCoreUtil.translateWithFormat("commands.ssuninvite.noPlayer", "\"" + var3 + "\""), new Object[0]);
                        }
View Full Code Here

Examples of net.minecraft.inventory.IInventory.markDirty()

            int maxSize = stack.getMaxStackSize();
            stack.stackSize = remove(par1ItemStack, maxSize);
            if (stack.stackSize != 0) {
              if (inv.isItemValidForSlot(slot, stack) && (!(inv instanceof ISidedInventory) || ((ISidedInventory) inv).canInsertItem(slot, stack, par7))) {
                inv.setInventorySlotContents(slot, stack);
                inv.markDirty();
                set = true;
              }
            }
          } else if (stackInSlot.getItem() == Item.getItemFromBlock(bBlock) && stackInSlot.getItemDamage() == bmeta) {
            int maxSize = stackInSlot.getMaxStackSize();
View Full Code Here

Examples of net.minecraft.inventory.IInventory.markDirty()

          } else if (stackInSlot.getItem() == Item.getItemFromBlock(bBlock) && stackInSlot.getItemDamage() == bmeta) {
            int maxSize = stackInSlot.getMaxStackSize();
            int missing = maxSize - stackInSlot.stackSize;
            if (inv.isItemValidForSlot(slot, stackInSlot) && (!(inv instanceof ISidedInventory) || ((ISidedInventory) inv).canInsertItem(slot, stackInSlot, par7))) {
              stackInSlot.stackSize += remove(par1ItemStack, missing);
              inv.markDirty();
              set = true;
            }
          }
        }
      } else {
View Full Code Here

Examples of net.minecraft.inventory.IInventory.markDirty()

                ItemStack used = emitItemToTransporter(front, invStack, filter.color, min);
               
                if(used != null)
                {
                  invStack.use(used.stackSize);
                  inventory.markDirty();
                  setActive(true);
                  sentItems = true;
                 
                  break;
                }
View Full Code Here

Examples of net.minecraft.inventory.IInventory.markDirty()

              ItemStack used = emitItemToTransporter(front, invStack, color, 0);
             
              if(used != null)
              {
                invStack.use(used.stackSize);
                inventory.markDirty();
                setActive(true);
              }
            }
          }
View Full Code Here

Examples of net.minecraft.tileentity.TileEntity.markDirty()

    @Override
    public void markDirty() {
        super.markDirty();
        TileEntity tile = getTile();
        if (tile != null)
            tile.markDirty();
    }

    @Override
    public int getSizeInventory() {
        TileEntity tile = getTile();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.