mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-23 06:22:03 +08:00
Fix fall-through warning in debug_point_enable()
This commit is contained in:
parent
072b9682c7
commit
994640858b
@ -17,6 +17,7 @@
|
||||
#include <utils/builtins.h>
|
||||
|
||||
#include "export.h"
|
||||
#include "annotations.h"
|
||||
|
||||
TS_FUNCTION_INFO_V1(ts_debug_point_enable);
|
||||
TS_FUNCTION_INFO_V1(ts_debug_point_release);
|
||||
@ -84,7 +85,7 @@ debug_point_enable(const DebugPoint *point)
|
||||
case LOCKACQUIRE_ALREADY_HELD:
|
||||
case LOCKACQUIRE_ALREADY_CLEAR:
|
||||
LockRelease(&point->tag, ExclusiveLock, true);
|
||||
/* fallthrough */
|
||||
TS_FALLTHROUGH;
|
||||
case LOCKACQUIRE_NOT_AVAIL:
|
||||
ereport(ERROR, (errmsg("debug point \"%s\" already enabled", point->name)));
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user