Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions galera/src/key_set.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class KeySet
#else
ret = (lhs[2] == rhs[2] && lhs[3] == rhs[3]);
#endif /* WORDSIZE */
/* fallthrough */
case FLAT8:
case FLAT8A:
/* shift is to clear up the header */
Expand Down
4 changes: 2 additions & 2 deletions galera/src/replicator_smm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ galera::ReplicatorSMM::~ReplicatorSMM()
case S_JOINED:
case S_SYNCED:
case S_DONOR:
close();
close(); // fallthrough
case S_CLOSING:
// @todo wait that all users have left the building
case S_CLOSED:
Expand Down Expand Up @@ -857,8 +857,8 @@ wsrep_status_t galera::ReplicatorSMM::replay_trx(TrxHandle* trx, void* trx_ctx)
ApplyOrder ao(*trx);
gu_trace(apply_monitor_.enter(ao));
trx->set_state(TrxHandle::S_MUST_REPLAY_CM);
// fall through
}
// fall through
case TrxHandle::S_MUST_REPLAY_CM:
if (co_mode_ != CommitOrder::BYPASS)
{
Expand Down
2 changes: 1 addition & 1 deletion galera/src/saved_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ SavedState::SavedState (const std::string& file) :
}

log_info << "Found saved state: " << uuid_ << ':' << seqno_
<< ", safe_to_bootsrap: " << safe_to_bootstrap_;
<< ", safe_to_bootstrap: " << safe_to_bootstrap_;

#if 0 // we'll probably have it legal
if (seqno_ < 0 && uuid_ != WSREP_UUID_UNDEFINED)
Expand Down
2 changes: 1 addition & 1 deletion galerautils/src/gu_dbug.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ _gu_db_push_(const char *control)
break;
case 'A':
case 'O':
_gu_db_stack->flags |= FLUSH_ON_WRITE;
_gu_db_stack->flags |= FLUSH_ON_WRITE; /* fallthrough */
case 'a':
case 'o':
if (*scan++ == ',') {
Expand Down
26 changes: 13 additions & 13 deletions galerautils/src/gu_mmh3.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,24 +184,24 @@ _mmh3_128_tail (const uint8_t* const tail, size_t const len,

switch(len & 15)
{
case 15: k2 ^= ((uint64_t)tail[14]) << 48;
case 14: k2 ^= ((uint64_t)tail[13]) << 40;
case 13: k2 ^= ((uint64_t)tail[12]) << 32;
case 12: k2 ^= ((uint64_t)tail[11]) << 24;
case 11: k2 ^= ((uint64_t)tail[10]) << 16;
case 10: k2 ^= ((uint64_t)tail[ 9]) << 8;
case 15: k2 ^= ((uint64_t)tail[14]) << 48; // fallthrough
case 14: k2 ^= ((uint64_t)tail[13]) << 40; // fallthrough
case 13: k2 ^= ((uint64_t)tail[12]) << 32; // fallthrough
case 12: k2 ^= ((uint64_t)tail[11]) << 24; // fallthrough
case 11: k2 ^= ((uint64_t)tail[10]) << 16; // fallthrough
case 10: k2 ^= ((uint64_t)tail[ 9]) << 8; // fallthrough
case 9: k2 ^= ((uint64_t)tail[ 8]) << 0;
k2 *= _mmh3_128_c2; k2 = GU_ROTL64(k2,33); k2 *= _mmh3_128_c1; h2 ^= k2;
k1 = gu_le64(((uint64_t*)tail)[0]);
k1 *= _mmh3_128_c1; k1 = GU_ROTL64(k1,31); k1 *= _mmh3_128_c2; h1 ^= k1;
break;
case 8: k1 ^= ((uint64_t)tail[ 7]) << 56;
case 7: k1 ^= ((uint64_t)tail[ 6]) << 48;
case 6: k1 ^= ((uint64_t)tail[ 5]) << 40;
case 5: k1 ^= ((uint64_t)tail[ 4]) << 32;
case 4: k1 ^= ((uint64_t)tail[ 3]) << 24;
case 3: k1 ^= ((uint64_t)tail[ 2]) << 16;
case 2: k1 ^= ((uint64_t)tail[ 1]) << 8;
case 8: k1 ^= ((uint64_t)tail[ 7]) << 56; // fallthrough
case 7: k1 ^= ((uint64_t)tail[ 6]) << 48; // fallthrough
case 6: k1 ^= ((uint64_t)tail[ 5]) << 40; // fallthrough
case 5: k1 ^= ((uint64_t)tail[ 4]) << 32; // fallthrough
case 4: k1 ^= ((uint64_t)tail[ 3]) << 24; // fallthrough
case 3: k1 ^= ((uint64_t)tail[ 2]) << 16; // fallthrough
case 2: k1 ^= ((uint64_t)tail[ 1]) << 8; // fallthrough
case 1: k1 ^= ((uint64_t)tail[ 0]) << 0;
k1 *= _mmh3_128_c1; k1 = GU_ROTL64(k1,31); k1 *= _mmh3_128_c2; h1 ^= k1;
};
Expand Down
22 changes: 11 additions & 11 deletions galerautils/src/gu_spooky.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,37 +244,37 @@ static GU_INLINE void gu_spooky_short_host(
switch (remainder)
{
case 15:
d += ((uint64_t)u.p8[14]) << 48;
d += ((uint64_t)u.p8[14]) << 48; // fallthrough
case 14:
d += ((uint64_t)u.p8[13]) << 40;
d += ((uint64_t)u.p8[13]) << 40; // fallthrough
case 13:
d += ((uint64_t)u.p8[12]) << 32;
d += ((uint64_t)u.p8[12]) << 32; // fallthrough
case 12:
d += gu_le32(u.p32[2]);
c += gu_le64(u.p64[0]);
break;
case 11:
d += ((uint64_t)u.p8[10]) << 16;
d += ((uint64_t)u.p8[10]) << 16; // fallthrough
case 10:
d += ((uint64_t)u.p8[9]) << 8;
d += ((uint64_t)u.p8[9]) << 8; // fallthrough
case 9:
d += (uint64_t)u.p8[8];
d += (uint64_t)u.p8[8]; // fallthrough
case 8:
c += gu_le64(u.p64[0]);
break;
case 7:
c += ((uint64_t)u.p8[6]) << 48;
c += ((uint64_t)u.p8[6]) << 48; // fallthrough
case 6:
c += ((uint64_t)u.p8[5]) << 40;
c += ((uint64_t)u.p8[5]) << 40; // fallthrough
case 5:
c += ((uint64_t)u.p8[4]) << 32;
c += ((uint64_t)u.p8[4]) << 32; // fallthrough
case 4:
c += gu_le32(u.p32[0]);
break;
case 3:
c += ((uint64_t)u.p8[2]) << 16;
c += ((uint64_t)u.p8[2]) << 16; // fallthrough
case 2:
c += ((uint64_t)u.p8[1]) << 8;
c += ((uint64_t)u.p8[1]) << 8; // fallthrough
case 1:
c += (uint64_t)u.p8[0];
break;
Expand Down
7 changes: 4 additions & 3 deletions galerautils/src/gu_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ gu_str2ll (const char* str, long long* ll)
{
case 't':
case 'T':
shift += 10;
shift += 10; // fallthrough
case 'g':
case 'G':
shift += 10;
shift += 10; // fallthrough
case 'm':
case 'M':
shift += 10;
shift += 10; // fallthrough
case 'k':
case 'K':
shift += 10;
Expand All @@ -47,6 +47,7 @@ gu_str2ll (const char* str, long long* ll)
else llret = LLONG_MIN;
errno = ERANGE;
}
// fallthrough
default:
*ll = llret;
}
Expand Down
2 changes: 1 addition & 1 deletion gcomm/src/evs_proto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2629,8 +2629,8 @@ int gcomm::evs::Proto::handle_down(Datagram& wb, const ProtoDownMeta& dm)
case EAGAIN:
{
output_.push_back(std::make_pair(wb, dm));
// Fall through
}
// Fall through
case 0:
ret = 0;
break;
Expand Down
1 change: 1 addition & 0 deletions gcs/src/gcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,7 @@ _join (gcs_conn_t* conn, gcs_seqno_t seqno)
case -ENOTCONN:
gu_warn ("Sending JOIN failed: %d (%s). "
"Will retry in new primary component.", err, strerror(-err));
// fallthrough
case 0:
return 0;
default:
Expand Down
1 change: 1 addition & 0 deletions gcs/src/gcs_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,7 @@ core_handle_comp_msg (gcs_core_t* core,
"WAIT_STATE_MSG. Can't continue.");
ret = -ENOTRECOVERABLE;
assert(0);
break;
default:
gu_fatal ("Failed to handle component message: %d (%s)!",
ret, strerror (-ret));
Expand Down
4 changes: 4 additions & 0 deletions gcs/src/gcs_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,15 +644,19 @@ static long gcs_test_conf (gcs_test_conf_t *conf, long argc, char *argv[])
case 6:
conf->n_recv = strtol (argv[5], &endptr, 10);
if ('\0' != *endptr) goto error;
// fallthrough
case 5:
conf->n_send = strtol (argv[4], &endptr, 10);
if ('\0' != *endptr) goto error;
// fallthrough
case 4:
conf->n_repl = strtol (argv[3], &endptr, 10);
if ('\0' != *endptr) goto error;
// fallthrough
case 3:
conf->n_tries = strtol (argv[2], &endptr, 10);
if ('\0' != *endptr) goto error;
// fallthrough
case 2:
conf->backend = argv[1];
break;
Expand Down
9 changes: 5 additions & 4 deletions www.evanjones.ca/crc32c.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ uint32_t crc32cHardware32(uint32_t crc, const void* data, size_t length) {
*/
switch (length) {
case 3:
crc = __builtin_ia32_crc32qi(crc, *p_buf++);
crc = __builtin_ia32_crc32qi(crc, *p_buf++); // fallthrough
case 2:
crc = __builtin_ia32_crc32hi(crc, *(uint16_t*) p_buf);
break;
Expand Down Expand Up @@ -755,22 +755,23 @@ uint32_t crc32cHardware64(uint32_t crc, const void* data, size_t length) {
*/
switch (length) {
case 7:
crc32bit = __builtin_ia32_crc32qi(crc32bit, *p_buf++);
crc32bit = __builtin_ia32_crc32qi(crc32bit, *p_buf++); // fallthrough
case 6:
crc32bit = __builtin_ia32_crc32hi(crc32bit, *(uint16_t*) p_buf);
p_buf += 2;
// case 5 is below: 4 + 1
// fallthrough
case 4:
crc32bit = __builtin_ia32_crc32si(crc32bit, *(uint32_t*) p_buf);
break;
case 3:
crc32bit = __builtin_ia32_crc32qi(crc32bit, *p_buf++);
crc32bit = __builtin_ia32_crc32qi(crc32bit, *p_buf++); // fallthrough
case 2:
crc32bit = __builtin_ia32_crc32hi(crc32bit, *(uint16_t*) p_buf);
break;
case 5:
crc32bit = __builtin_ia32_crc32si(crc32bit, *(uint32_t*) p_buf);
p_buf += 4;
p_buf += 4; // fallthrough
case 1:
crc32bit = __builtin_ia32_crc32qi(crc32bit, *p_buf);
break;
Expand Down