refactor: do some internal refactor.
This commit is contained in:
parent
38eb5d2f89
commit
29b3a7a5e9
|
@ -287,7 +287,7 @@ void mndReleaseStream(SMnode *pMnode, SStreamObj *pStream) {
|
||||||
static void mndShowStreamStatus(char *dst, SStreamObj *pStream) {
|
static void mndShowStreamStatus(char *dst, SStreamObj *pStream) {
|
||||||
int8_t status = atomic_load_8(&pStream->status);
|
int8_t status = atomic_load_8(&pStream->status);
|
||||||
if (status == STREAM_STATUS__NORMAL) {
|
if (status == STREAM_STATUS__NORMAL) {
|
||||||
strcpy(dst, "normal");
|
strcpy(dst, "ready");
|
||||||
} else if (status == STREAM_STATUS__STOP) {
|
} else if (status == STREAM_STATUS__STOP) {
|
||||||
strcpy(dst, "stop");
|
strcpy(dst, "stop");
|
||||||
} else if (status == STREAM_STATUS__FAILED) {
|
} else if (status == STREAM_STATUS__FAILED) {
|
||||||
|
@ -295,7 +295,7 @@ static void mndShowStreamStatus(char *dst, SStreamObj *pStream) {
|
||||||
} else if (status == STREAM_STATUS__RECOVER) {
|
} else if (status == STREAM_STATUS__RECOVER) {
|
||||||
strcpy(dst, "recover");
|
strcpy(dst, "recover");
|
||||||
} else if (status == STREAM_STATUS__PAUSE) {
|
} else if (status == STREAM_STATUS__PAUSE) {
|
||||||
strcpy(dst, "pause");
|
strcpy(dst, "paused");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <streamsm.h>
|
|
||||||
#include "streamInt.h"
|
#include "streamInt.h"
|
||||||
#include "streamsm.h"
|
#include "streamsm.h"
|
||||||
#include "tmisce.h"
|
#include "tmisce.h"
|
||||||
|
|
Loading…
Reference in New Issue