Reduce maximum nested contexts depth from 16k to 1k

This commit is contained in:
leventov
2015-07-25 22:50:58 +03:00
parent b1f9751025
commit f7789cbb5e
@@ -68,7 +68,7 @@ public class Chaining {
return (T) context;
}
}
int maxNestedContexts = 1 << 16;
int maxNestedContexts = 1 << 10;
if (contextChain.size() > maxNestedContexts) {
throw new IllegalStateException("More than " + maxNestedContexts +
" nested ChronicleHash contexts are not supported. Very probable that " +