Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/io.h
diff options
context:
space:
mode:
authorJohn Langford <jl@hunch.net>2009-08-31 20:51:14 +0400
committerJohn Langford <jl@hunch.net>2009-08-31 20:51:14 +0400
commit289fe8a798ef17ac29c4336f085bb548482c8eb1 (patch)
tree9ec8ad90360b5bd6afe1164e30b666bf971d1ec4 /io.h
parent9b8997796c5ba9422c3efe7aaf215983589a645f (diff)
debugging odd cluster bug
Diffstat (limited to 'io.h')
-rw-r--r--io.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/io.h b/io.h
index b2918334..5e39d84f 100644
--- a/io.h
+++ b/io.h
@@ -21,6 +21,7 @@ class io_buf {
io_buf() {
size_t s = 1 << 16;
+ file = -1;
reserve(space, s);
endloaded = space.begin;
}
@@ -33,6 +34,7 @@ class io_buf {
endloaded = space.begin+offset;
}
ssize_t num_read = read(file, endloaded, space.end_array - endloaded);
+ cout << "filling read " << num_read << endl;
if (num_read >= 0)
{
endloaded = endloaded+num_read;