Andreas Schneider
cccbb6699a
cmake: Find SMBClient correctly.
2013-07-04 10:29:48 +02:00
Andreas Schneider
8953ed544c
statedb: Remove context where it isn't needed.
2013-07-04 10:29:48 +02:00
Andreas Schneider
d05b077851
statedb: Always pass down the db pointer.
2013-07-04 10:29:19 +02:00
Klaas Freitag
ce6cf57a29
Make test work again by not writing the db.
2013-07-04 10:28:55 +02:00
Klaas Freitag
7eb3f901a6
Experimental: Fix the mv and recreate case as described in mirall#731.
...
Please note that this needs review and test and probably does not fully
fix it. It just makes sure that renames are handled before PUTs.
2013-07-03 22:38:45 +02:00
Klaas Freitag
7ef620f58d
Merge remote-tracking branch 'ogoffart/dav' into dav
2013-07-03 16:36:28 +02:00
Klaas Freitag
44a52ad951
Removed useless logging.
2013-07-03 16:32:33 +02:00
Olivier Goffart
f8fdff885e
Make sure to write the errors in the DB as well.
...
If a file can't be uploaded, we still need to write it into the DB if it
was in the DB before, with the old timestamp.
2013-07-02 23:07:37 +02:00
Olivier Goffart
1c9fa48d60
Create a function to free a csync_file_stat
2013-07-02 18:25:17 +02:00
Olivier Goffart
270e06a99b
Fix a possible leak
2013-07-02 17:42:47 +02:00
Daniel Molkentin
1a25644d60
Fix version number
2013-06-25 09:52:44 +02:00
Daniel Molkentin
8a8d98d401
Changelog
2013-06-25 09:47:47 +02:00
Daniel Molkentin
16d99b8ff8
0.80 for ownCloud 1.3
2013-06-25 09:25:34 +02:00
Andreas Schneider
22477b23a6
statedb: Never overwrite data set by the user!
...
Only a user of csync is allowed to call csync_set_userdata(). Never call
this inside of csync cause you will overwrite the data pointer and
information is lost!
2013-06-23 14:50:49 +02:00
Stefan Agner
33eaf7e7b0
statedb: use ctx when opening database for integrity check
...
Signed-off-by: Stefan Agner <stefan@agner.ch>
2013-06-23 14:03:27 +02:00
Daniel Molkentin
77653747ac
0.70.93
2013-06-20 19:45:18 +02:00
Olivier Goffart
0dbecb129e
Log the fact that csync was aborted
2013-06-19 18:41:30 +02:00
Olivier Goffart
3d2c3b321c
Disable the blacklist by default
...
The blacklist might hide errors and reduce the ability to do proper
diagnostics.
Note that in _csync_push_file, we kept csync_statedb_get_progressinfo
because it is also used for the resume feature
Also added output when a file has been blacklisted.
2013-06-18 19:19:28 +02:00
Andreas Schneider
3043b97815
cmake: Use pkg-config for libsmbclient.
2013-06-16 21:37:03 +02:00
Olivier Goffart
ed76e5f1f2
Fix conflict file appearing when a file cannot be stated
...
We still need to fetch the md5 from the database to be able to store it
back.
2013-06-13 15:06:35 +02:00
Daniel Molkentin
92b9bf59a7
0.70.92
2013-06-12 11:10:34 +02:00
Olivier Goffart
015eeb1e05
Clean the progress database on csync_commit
...
It was cleaned twice in csync_destroy because of the conflict resolution
https://github.com/owncloud/mirall/issues/667
2013-06-11 10:24:34 +02:00
Klaas Freitag
32818283a5
Remove default console log of httpbf
2013-06-11 08:53:19 +02:00
Klaas Freitag
4a04b3e184
Use a proper cast in inode query.
2013-06-11 08:47:32 +02:00
Andreas Schneider
d19a652993
cmake: Fix -D_FORTIFY_SOURCE detection.
2013-06-10 16:17:43 +02:00
Andreas Schneider
d864899ff1
src: Fix a build warning.
2013-06-10 16:17:33 +02:00
Andreas Schneider
85a858b7ed
src: Fix creating the inode system on 32bit system.
2013-06-10 16:08:14 +02:00
Klaas Freitag
bf8188e9e8
Create metadata table if not existing.
2013-06-10 11:48:38 +02:00
Klaas Freitag
72cc0f5d7c
Fixed testcase.
2013-06-10 11:48:38 +02:00
Olivier Goffart
f71d4dcc79
Add a log output when the replica is invalid in csync_vio
...
https://github.com/owncloud/mirall/issues/669
2013-06-10 10:19:46 +02:00
Olivier Goffart
78937b09b8
Clean the rename datastructure in csync_commit
...
Fixes the crash in mirall issue 670
https://github.com/owncloud/mirall/issues/670
2013-06-10 10:11:13 +02:00
Olivier Goffart
882e027e40
Remove dead condition
...
rc==123 was a magic value set to mean not to save the error. But after
some refactoring, it is not done like that anymore
2013-06-07 16:43:48 +02:00
Klaas Freitag
161e2fbadc
Avoid build failure if NDEBUG is unset.
2013-06-07 16:19:22 +02:00
Klaas Freitag
ae5847138c
Fix test cases for the new database code.
2013-06-07 16:09:22 +02:00
Klaas Freitag
5852a2dd06
Create an empty metadata table if non exists.
2013-06-07 16:09:07 +02:00
Klaas Freitag
fbfba8bfbb
Add another database integrity check on startup to avoid corrupt dbs.
2013-06-07 16:08:45 +02:00
Daniel Molkentin
5a2d7e9c9f
Do not corrupt ctx->replica value if push_file fails
2013-06-07 14:58:38 +02:00
Klaas Freitag
d9ef991448
Removed unused progress info allocation.
2013-06-07 09:18:27 +02:00
Olivier Goffart
bb03664bfd
Let csync_update report the right error.
...
The problem is that the call to csync_memstat_check will try to open a
file, that will fail on windows and override the errno
2013-06-06 10:44:52 +02:00
Klaas Freitag
e4e30e2cdd
Use multibyte version of open in database version check.
2013-06-05 17:59:34 +02:00
Klaas Freitag
f320f9c701
void an unused variable.
2013-06-05 16:39:06 +02:00
Klaas Freitag
e92dd4c1da
Removed some logs that are not needed.
2013-06-05 16:35:48 +02:00
Klaas Freitag
cab00ea668
Added missing CloseHandle, detected by Coverty.
2013-06-05 16:34:58 +02:00
Daniel Molkentin
e92a422d3d
Send OC-Chunked instead of OC_CHUNKED.
...
Will still be understood by the server, as PHP mangles the header
to read HTTP_OC_CHUNKED in both cases.
2013-06-03 22:51:28 +02:00
Klaas Freitag
9001dbb082
Use variable verb and avoid warnings.
2013-06-03 17:23:39 +02:00
Olivier Goffart
22a07634b6
Fix upload of big files when proxy remove the OC_CHUNKED header
...
In that case, the first chun would be uploaded as a chunk.
Take that case into account and if we get a success after only one
chunk, we try to delete the chunk, and it it worked, it means chunking
was not supported.
2013-06-03 17:23:39 +02:00
Daniel Molkentin
a06078f89f
bump version
2013-05-31 16:26:54 +02:00
Klaas Freitag
fe6fdb5e88
Enable NE_LFS, important for Win32 platform.
2013-05-31 13:23:21 +02:00
Daniel Molkentin
c53ad974ee
Make socks proxies work.
2013-05-29 14:17:30 +02:00
Daniel Molkentin
4d663f6cfa
More cheating on proxies: Add OS to User-Agent
2013-05-28 19:35:54 +02:00