]> andersk Git - svn-all-fast-export.git/commitdiff
Wait forever. Not very efficient, but works.
authorThiago Macieira <thiago.macieira@trolltech.com>
Fri, 28 Dec 2007 12:36:14 +0000 (13:36 +0100)
committerThiago Macieira <thiago.macieira@trolltech.com>
Fri, 28 Dec 2007 12:47:01 +0000 (13:47 +0100)
src/repository.cpp
src/svn.cpp

index 18d145a6b0899f14f7f7044fb7c77da539a605de..aef71a16e70e846d1de5d63711aa660a016e534a 100644 (file)
@@ -243,6 +243,6 @@ void Repository::Transaction::commit()
     repository->fastImport.write("\n");
 
     while (repository->fastImport.bytesToWrite())
-        if (!repository->fastImport.waitForBytesWritten())
+        if (!repository->fastImport.waitForBytesWritten(-1))
             qFatal("Failed to write to process: %s", qPrintable(repository->fastImport.errorString()));
 }
index e6dc519bc19b09fa5e8576b541bc8cc00e21dfd6..09fddf993e45ca1aa996dc8b9eba483d670afe27 100644 (file)
@@ -228,9 +228,8 @@ svn_error_t *QIODevice_write(void *baton, const char *data, apr_size_t *len)
     QIODevice *device = reinterpret_cast<QIODevice *>(baton);
     device->write(data, *len);
 
-    while (device->bytesToWrite() > 16*1024) {
-        int timeout = device->bytesToWrite() >= 128*1024 ? -1 : 0;
-        if (!device->waitForBytesWritten(timeout)) {
+    while (device->bytesToWrite() > 32*1024) {
+        if (!device->waitForBytesWritten(-1)) {
             qFatal("Failed to write to process: %s", qPrintable(device->errorString()));
             return svn_error_createf(APR_EOF, SVN_NO_ERROR, "Failed to write to process: %s",
                                      qPrintable(device->errorString()));
This page took 0.179268 seconds and 5 git commands to generate.