Describe the bug
sc_timepart sometimes causes the database to become unavailable. At least one of these times it was because the database aborted after this Pthread_mutex_lock returned EINVAL. Memory may be getting corrupted somewhere.
To Reproduce
Run sc_timepart