Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix bug in ZK program.

  • Loading branch information...
commit 58d90554fd578be386f05bc8695311d96eb0bd6a 1 parent e0e6418
Tom White authored
1  ch14/src/main/java/ResilientActiveKeyValueStore.java
@@ -28,6 +28,7 @@ public void write(String path, String value) throws InterruptedException,
28 28 } else {
29 29 zk.setData(path, value.getBytes(CHARSET), stat.getVersion());
30 30 }
  31 + return;
31 32 } catch (KeeperException.SessionExpiredException e) {
32 33 throw e;
33 34 } catch (KeeperException e) {
3  snippet/bin/check_manuscript.sh
@@ -5,7 +5,8 @@ bin=`cd "$bin"; pwd`
5 5
6 6 actual="$bin"/../actual
7 7
8   -for ch in ch02 ch04 ch05 ch07 ch08 ch11 ch12
  8 +# Should add remaining chapters: ch03 ch04 ch14
  9 +for ch in ch02 ch05 ch07 ch08 ch11 ch12
9 10 do
10 11 # remove any id attributes from program listings
11 12 sed '/<programlisting/s/ id=".*"//' ~/book-workspace/htdg3/$ch.xml > /tmp/$ch.xml
1  snippet/bin/generate_listings.sh
@@ -15,3 +15,4 @@ perl $bin/phragmite_db.pl $actual/ch05/ $bin/../../ch05/src/main/resources/max-t
15 15 perl $bin/phragmite_db.pl $actual/ch07/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch07)
16 16 perl $bin/phragmite_db.pl $actual/common/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../common)
17 17 perl $bin/phragmite_db.pl $actual/ch08/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch08)
  18 +perl $bin/phragmite_db.pl $actual/ch14/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch14)

0 comments on commit 58d9055

Please sign in to comment.
Something went wrong with that request. Please try again.