Skip to content

Commit

Permalink
Fix bug in ZK program.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Feb 6, 2012
1 parent e0e6418 commit 58d9055
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions ch14/src/main/java/ResilientActiveKeyValueStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public void write(String path, String value) throws InterruptedException,
} else {
zk.setData(path, value.getBytes(CHARSET), stat.getVersion());
}
return;
} catch (KeeperException.SessionExpiredException e) {
throw e;
} catch (KeeperException e) {
Expand Down
3 changes: 2 additions & 1 deletion snippet/bin/check_manuscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ bin=`cd "$bin"; pwd`

actual="$bin"/../actual

for ch in ch02 ch04 ch05 ch07 ch08 ch11 ch12
# Should add remaining chapters: ch03 ch04 ch14
for ch in ch02 ch05 ch07 ch08 ch11 ch12
do
# remove any id attributes from program listings
sed '/<programlisting/s/ id=".*"//' ~/book-workspace/htdg3/$ch.xml > /tmp/$ch.xml
Expand Down
1 change: 1 addition & 0 deletions snippet/bin/generate_listings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ perl $bin/phragmite_db.pl $actual/ch05/ $bin/../../ch05/src/main/resources/max-t
perl $bin/phragmite_db.pl $actual/ch07/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch07)
perl $bin/phragmite_db.pl $actual/common/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../common)
perl $bin/phragmite_db.pl $actual/ch08/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch08)
perl $bin/phragmite_db.pl $actual/ch14/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch14)

0 comments on commit 58d9055

Please sign in to comment.