- **status**: review --> fixed
- **assigned_to**: Vu Minh Nguyen --> nobody
- **Comment**:
commit ffbeba61513e28ce862eaa735ed75e8243f881b8 (HEAD, origin/develop, develop)
Author: Vu Minh Nguyen <[email protected]>
Date: Mon Oct 2 09:34:50 2017 +0700
log: remove duplicated code in lga_client and lga_stream [#2567]
Introduce `RefCounter` class to remove duplicated code in LogClient
and LogStreamInfo. Introduce also one new parameter `caller`,
the purpose mainly is for debugging.
---
** [tickets:#2567] log: duplicated code in lga_client and lga_stream**
**Status:** fixed
**Milestone:** 5.17.10
**Created:** Thu Aug 31, 2017 01:15 PM UTC by Vu Minh Nguyen
**Last Updated:** Fri Sep 01, 2017 05:19 AM UTC
**Owner:** nobody
LogClient and LogStreamInfo class have same three methods with same code, they
are:
```c++
int32_t FetchAndIncreaseRefCounter(bool* updated);
int32_t FetchAndDecreaseRefCounter(bool* updated);
void RestoreRefCounter(RefCounterDegree value, bool updated);
```
It is better to create independent RefCounter class with these methods.
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets