I dead wooded a cedrus atlantica once, a small one about 30 years old. It was covered by sap, with some limbs dead or dying, what a mess. Not a massive flooding, but many many small sags. Each one came from a tiny hole from a bark borer. Thousands of them. Curiously, there was almost none on his brother a few meters away. Often, many bugs strike when they smell that the tree has a problem. So I really thought that this cedrus will be gone soon.
But no. I saw him a few years later, still alive and in a pretty much good shape, which surprised me. No more sap dripping on the bark, and the holes in the crown began to be filled by the growth of the neighbor limbs. I was so pleased to see that.