public void set(long newVal) throws IOException { if (value != newVal || !loaded) { writeFile(file, newVal); } value = newVal; loaded = true; }
/** * Write last checkpoint time into a separate file. * @param sd storage directory * @throws IOException */ void writeTransactionIdFile(StorageDirectory sd, long txid) throws IOException { Preconditions.checkArgument(txid >= 0, "bad txid: " + txid); File txIdFile = getStorageFile(sd, NameNodeFile.SEEN_TXID); PersistentLongFile.writeFile(txIdFile, txid); }
public void set(long newVal) throws IOException { if (value != newVal || !loaded) { writeFile(file, newVal); } value = newVal; loaded = true; }
public void set(long newVal) throws IOException { if (value != newVal || !loaded) { writeFile(file, newVal); } value = newVal; loaded = true; }
/** * Write last checkpoint time into a separate file. * @param sd storage directory * @throws IOException */ void writeTransactionIdFile(StorageDirectory sd, long txid) throws IOException { Preconditions.checkArgument(txid >= 0, "bad txid: " + txid); File txIdFile = getStorageFile(sd, NameNodeFile.SEEN_TXID); PersistentLongFile.writeFile(txIdFile, txid); }
/** * Write last checkpoint time into a separate file. * @param sd storage directory * @throws IOException */ void writeTransactionIdFile(StorageDirectory sd, long txid) throws IOException { Preconditions.checkArgument(txid >= 0, "bad txid: " + txid); File txIdFile = getStorageFile(sd, NameNodeFile.SEEN_TXID); PersistentLongFile.writeFile(txIdFile, txid); }