svn commit: r1924085 - /subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c
| Newsgroups | gmane.comp.version-control.subversion.svn |
|---|---|
| Message-ID | <[email protected]> |
Author: kotkov
Date: Thu Feb 27 23:23:59 2025
New Revision: 1924085
URL: http://svn.apache.org/viewvc?rev=1924085&view=rev
Log:
Following up on r1905955, fix an issue in seek handler of the pristine
install stream that caused the stream to unexpectedly fail on reset attempts.
This issue might be related to the failures observed in [1] that contain
unexpected "Stream doesn't support seeking" errors.
* subversion/libsvn_wc/wc_db_pristine.c
(install_stream_seek_fn): Return `SVN_ERR_STREAM_SEEK_NOT_SUPPORTED` only
if the caller passes a non-null `svn_stream_mark_t`. A non-null mark
indicates an arbitrary seek, which the pristine install stream does
not support. A null mark represents a reset, which *is* supported.
[1]: https://lists.apache.org/thread/dkxl0onsrkskgdqbz1fp8rc2kov2ssrk
Modified:
subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c
Modified: subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c?rev=1924085&r1=1924084&r2=1924085&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c Thu Feb 27 23:23:59 2025
@@ -286,7 +286,7 @@ install_stream_seek_fn(void *baton, cons
{
svn_wc__db_install_data_t *install_data = baton;
- if (!mark)
+ if (mark)
return svn_error_create(SVN_ERR_STREAM_SEEK_NOT_SUPPORTED, NULL, NULL);
if (install_data->inner_stream)