Hi Canh

Comment:
Handling check-pointing of stream open info is done locally in several places. 
This problem was caused because adding check-pointing of destination name was 
forgotten in one of these places. Refactor so that handling of checkpoint data 
for stream open is done in one place

Thanks
Lennart

> -----Original Message-----
> From: Canh Van Truong [mailto:[email protected]]
> Sent: den 20 april 2017 17:44
> To: Lennart Lund <[email protected]>; Vu Minh Nguyen
> <[email protected]>; [email protected]
> Cc: [email protected]; Canh Van Truong
> <[email protected]>
> Subject: [PATCH 1/1] log: fix checkpoint dest_names in open stream request
> [#2434]
> 
> The patch add dest_names in checkpointing at open stream request.
> ---
>  src/log/logd/lgs_evt.cc | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/log/logd/lgs_evt.cc b/src/log/logd/lgs_evt.cc
> index 6972efe55..fcc02de63 100644
> --- a/src/log/logd/lgs_evt.cc
> +++ b/src/log/logd/lgs_evt.cc
> @@ -866,6 +866,8 @@ static uint32_t lgs_ckpt_stream_open(lgs_cb_t *cb,
> log_stream_t *logStream,
>      ckpt_rec_open_ptr->fileFmt = logStream->logFileFormat;
>      ckpt_rec_open_ptr->logStreamName =
>          const_cast<char *>(logStream->name.c_str());
> +    ckpt_rec_open_ptr->dest_names =
> +        const_cast<char *>(logStream->stb_dest_names.c_str());
> 
>      ckpt_rec_open_ptr->maxFileSize = logStream->maxLogFileSize;
>      ckpt_rec_open_ptr->maxLogRecordSize = logStream-
> >fixedLogRecordSize;
> --
> 2.11.0


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to