forked from scylladb/scylla-seastar
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
collectd: avoid using an exception as end-of-packet indicator
Collectd uses an exception to signal that the buffer space in the packet is exhausted and a new packet needs to be started. This violates the "exceptions are for exceptional conditions" guideline, but more practically, makes it hard to use the gdb "catch throw" command to trap exceptions. Fix by using a data member to store the overflow condition instead.
- Loading branch information
Showing
1 changed file
with
30 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters