Skip to content

Commit fed7014

Browse files
committed
rename pioFlush -> pioWriteFinish
1 parent 399b430 commit fed7014

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/utils/file.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4270,7 +4270,7 @@ pioLocalFile_pioWrite(VSelf, ft_bytes_t buf, err_i *err)
42704270
}
42714271

42724272
static err_i
4273-
pioLocalFile_pioFlush(VSelf)
4273+
pioLocalFile_pioWriteFinish(VSelf)
42744274
{
42754275
Self(pioLocalFile);
42764276
ft_assert(self->fd >= 0, "Closed file abused \"%s\"", self->p.path);
@@ -4816,7 +4816,7 @@ pioRemoteFile_pioWrite(VSelf, ft_bytes_t buf, err_i *err)
48164816
}
48174817

48184818
static err_i
4819-
pioRemoteFile_pioFlush(VSelf)
4819+
pioRemoteFile_pioWriteFinish(VSelf)
48204820
{
48214821
Self(pioRemoteFile);
48224822

@@ -5134,7 +5134,7 @@ pioWriteFilter_pioWrite(VSelf, ft_bytes_t rbuf, err_i *err)
51345134
}
51355135

51365136
static err_i
5137-
pioWriteFilter_pioFlush(VSelf)
5137+
pioWriteFilter_pioWriteFinish(VSelf)
51385138
{
51395139
Self(pioWriteFilter);
51405140
err_i err = $noerr();
@@ -5503,8 +5503,8 @@ pioCopyWithFilters(pioWriteFlush_i dest, pioRead_i src,
55035503
}
55045504
}
55055505

5506-
/* pioFlush will check for async error if destination was remote */
5507-
err = $i(pioFlush, dest);
5506+
/* pioWriteFinish will check for async error if destination was remote */
5507+
err = $i(pioWriteFinish, dest);
55085508
if ($haserr(err))
55095509
$ireturn($err(SysErr, "Cannot flush file {path}: {cause}",
55105510
path($irepr(dest)), cause(err.self)));

src/utils/file.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,16 +224,16 @@ fobj_error_cstr_key(gzErrStr);
224224
#define mth__pioRead size_t, (ft_bytes_t, buf), (err_i *, err)
225225
#define mth__pioWrite size_t, (ft_bytes_t, buf), (err_i *, err)
226226
#define mth__pioTruncate err_i, (size_t, sz)
227-
#define mth__pioFlush err_i
227+
#define mth__pioWriteFinish err_i
228228
fobj_method(pioClose);
229229
fobj_method(pioRead);
230230
fobj_method(pioWrite);
231231
fobj_method(pioTruncate);
232-
fobj_method(pioFlush);
232+
fobj_method(pioWriteFinish);
233233

234-
#define iface__pioFile mth(pioWrite, pioFlush, pioRead, pioTruncate, pioClose)
235-
#define iface__pioWriteFlush mth(pioWrite, pioFlush)
236-
#define iface__pioWriteCloser mth(pioWrite, pioFlush, pioClose)
234+
#define iface__pioFile mth(pioWrite, pioWriteFinish, pioRead, pioTruncate, pioClose)
235+
#define iface__pioWriteFlush mth(pioWrite, pioWriteFinish)
236+
#define iface__pioWriteCloser mth(pioWrite, pioWriteFinish, pioClose)
237237
#define iface__pioReadCloser mth(pioRead, pioClose)
238238
fobj_iface(pioFile);
239239
fobj_iface(pioWriteFlush);

0 commit comments

Comments
 (0)