"When I saw him and the dog together the immediate reaction was a welling of tears, there were a lot of tears yesterday, joyful tears," Gina Knepp, with Front Street Animal Shelter, told FOX40.
Quinn, 12, is a cancer survivor.
Two years ago the disease forced him to have his leg and hip amputated.
"Right after my surgery, I wanted a dog with three legs," he said. "That was the first thing I said when I woke up."
After an extensive search, Quinn's mom Teresa found the perfect three legged dog through the shelter's Facebook page.
Thursday, she pulled her son out of school early in Napa and rushed to Sacramento.
But when they arrived, someone else had reserved Logan.
"They were disappointed but decided to wait. So they say down and waited and the woman changed her mind," Knepp said.
Just like that, Quinn's wish was granted.
Quinn's mom Teresa says her son has actually battled cancer twice, starting from when he was just a baby. She says treatments can be lonely and isolating but now he has a companion.
A companion who also overcame a difficult journey.
The pitbull mix was picked up as a stray with a broken leg that had to be amputated.
Logan recovered from surgery. Quinn beat cancer.
Now, the two fighters with the same unique challenge have each other.