]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/read.c
Add additional search directories for PostgreSQL
[bacula/bacula] / bacula / src / stored / read.c
index d2268133eba4e4f6a15736afd3827bfe97e6365f..1285e5a0d785a33e778eb9858c19c930e22d58d4 100644 (file)
@@ -56,7 +56,7 @@ int do_read_data(JCR *jcr)
    bnet_fsend(fd, OK_data);
    Dmsg1(10, "bstored>filed: %s\n", fd->msg);
 
-   if (!bnet_set_buffer_size(fd, MAX_NETWORK_BUFFER_SIZE, BNET_SETBUF_READ)) {
+   if (!bnet_set_buffer_size(fd, dev->device->max_network_buffer_size, BNET_SETBUF_WRITE)) {
       return 0;
    }